<template>
    <div class="card-header">
        各月份用电量
    </div>
    <div style="flex: 1;">
        <ReportChart meter-type="electricity" interval="month" :dateRange="dateRange"></ReportChart>
    </div>
</template>
<script setup>
import dayjs from 'dayjs';

let dateRange = [{
    start_time: dayjs().startOf('year').valueOf(),
    end_time: dayjs().startOf('day').valueOf(),
    legend: '本年'
}, {
    start_time: dayjs().subtract(1, 'year').startOf('year').valueOf(),
    end_time: dayjs().startOf('year').valueOf(),
    legend: '去年'
}]
</script>
<style scoped></style>